package com.hnevc.androiduiclassone7;

import android.content.Intent;
import android.graphics.drawable.RippleDrawable;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;

public class Main2Activity extends AppCompatActivity {

    TextView mTvMessage;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main2);

        mTvMessage = findViewById(R.id.tv_message);
        Intent intent = getIntent();
        mTvMessage.setText(intent.getStringExtra("data"));

    }
}
